#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
	int a[10],s,n;
	int sz = sizeof(a) / sizeof(a[0]);
	for (s = 0; s < sz; s++)
	{
		scanf("%d", &a[s]);
	}
	for (s = 0; s < sz-1; s++)
	for (n = 0; n < sz-1-s; n++)
	{
		if (a[n] > a[n + 1])
		{
			int tmp;
			tmp = a[n];
			a[n] = a[n + 1];
			a[n + 1] = tmp;
		}
	}
	for (n = 0; n < sz; n++)
		printf(" %d", a[n]);
}